
/**
 * 获取dom信息
 * @param objClass class 选择器
 * @param proxy  uniapp对象
 * @param select 选择全部还是一个
 * @returns 
 */
export const getDomInfo = (objClass : string, proxy : any, select : string = 'select',) => {
	return new Promise((resolve) => {
		const query = uni.createSelectorQuery().in(proxy);
		query[select](objClass)
			.boundingClientRect((rect : any) => {
				return resolve(rect);
			})
			.exec()
	})
}